/*
 * list.h
 *
 *  Created on: 5 Nov 2009
 *      Author: Marc Pluhar <marc.pluhar@stud.hs-esslingen.de>
 */

#pragma once
#ifndef LIST_H_
#define LIST_H_

#include <stdio.h>			/* Used for DEBUG messages */
#include <stdlib.h>

struct LIST {
	struct LIST* next;
	void* payload;
};
typedef struct LIST List;
typedef unsigned int list_size;

List* list_new();
void list_addItem(List*, void*);
void* list_getPayload(const List*);
List* list_getNext(const List*);
list_size list_getCount(const List*);

#endif /* LIST_H_ */
